<%@ page language="java" import="web_hr.Model,java.util.*,java.sql.*" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    
<% 
String pword = new String(request.getParameter("password").getBytes("ISO-8859-1"),"UTF-8");
boolean flag = false;
String str = "\\w{1,20}";		//密码必须为1~20数字，字母，或下划线。
if(pword.matches(str)){
	flag = true;
	out.println("<span id='w2'><font color = green>Password is available!</font></span>");
}else{
	out.println("<span id = 'w2'><font color = red>Password must be letters or digits or underscore!</font></span>");
}
%>